import { Navigate, createBrowserRouter } from "react-router-dom";
import App from "../App";
import Home from "../components/Home";
import BackLogin from "../components/BackLogin";
import ExamLogin from "../wjs/ExamLogin";

let router = createBrowserRouter([
    {
        path:'/',element: <App></App>,
        children:[
            {path:'/',element:<Navigate to="/home"/>},
            {path:'/home',element:<Home></Home>},
            {path: '/exam', element: <ExamLogin></ExamLogin>},
            {
                path: '/login',
                element: <BackLogin></BackLogin>
            }
        ]
    },
])

export default router;